#include<iostream>
#include<string>
using namespace std;
class Person
{
    public:
         Person(int num):m_num(num){};
         Person(int num, string name) : m_num(num), m_name(name){};

    private:
        int m_num;
        string m_name;//出向私有成员，无法用初始化列表直接对私有成员进行初始化，必须相应的构造函数
};
Person getPerson()
{
    return {520, "华安"};
}
int main()
{

    Person p{9527,"华安"};//非聚合类型使用初始化列表时，调用类提供的构造函数 
    
    return 0;
}